Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Discover table keyboard accessible. #11604

Merged
merged 6 commits into from
May 10, 2017

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented May 4, 2017

Blocked by #11591

Partially addresses #11541. Complements #11591.

discover_table_tabbable

TODO

  • Sort icons at top of table
  • "Back to top" link at bottom of screen

@cjcenizal cjcenizal added Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. :Discovery release_note:enhancement v5.5.0 v6.0.0 labels May 4, 2017
@cjcenizal cjcenizal requested review from snide, lukasolson and Bargs May 4, 2017 20:40
@cjcenizal cjcenizal force-pushed the 11541/bug/discover-table-tabbable branch from 672777c to a6e2732 Compare May 4, 2017 20:52
@lukasolson lukasolson added the Feature:Discover Discover Application label May 5, 2017
></i>
<button
class="doc-viewer-button"
ng-click="filter(mapping[field], flattened[field], '+')"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this should still be toggleColumn(field), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

>
<i
class="fa fa-columns"
ng-click="toggleColumn(field)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't need this any more, right?

@@ -48,6 +60,13 @@ uiModules.get('kibana')
controller: function ($scope) {
$scope.mode = docViews.inOrder[0].name;
$scope.docViews = docViews.byName;

$scope.onKeyUp = function onKeyUp(e, name) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, for some reason this doesn't appear to be working. Notice how when I click on it, the view changes modes successfully, but when I tab and hit enter, it doesn't. (My guess is that it probably has something to do with $parent scope, since mode is directly on the $scope object which always causes problems.)

may-05-2017 16-02-44

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the directive I made in #11604 will help me with this. I'll merge that PR first and then try to fix this.

@cjcenizal cjcenizal force-pushed the 11541/bug/discover-table-tabbable branch from 280049a to a9b08d4 Compare May 9, 2017 21:32
@cjcenizal
Copy link
Contributor Author

@lukasolson I applied the kbn-accessible-click directive, which seems to solve the problem you pointed out with the tabs. Could you take another look?

@Bargs Would you mind reviewing too?

@Bargs
Copy link
Contributor

Bargs commented May 9, 2017

Sure thing, I'll get to this tomorrow. I was just waiting on the rebase from #11591

Copy link
Contributor

@Bargs Bargs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@lukasolson lukasolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cjcenizal cjcenizal merged commit c861dc2 into elastic:master May 10, 2017
@cjcenizal cjcenizal deleted the 11541/bug/discover-table-tabbable branch May 10, 2017 17:45
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 10, 2017
* Make Discover table carets tabbable.
* Make Discover table tabs tabbable.
* Make Discover table icon buttons tabbable.
cjcenizal added a commit that referenced this pull request May 10, 2017
* Make Discover table carets tabbable.
* Make Discover table tabs tabbable.
* Make Discover table icon buttons tabbable.
snide pushed a commit to snide/kibana that referenced this pull request May 30, 2017
* Make Discover table carets tabbable.
* Make Discover table tabs tabbable.
* Make Discover table icon buttons tabbable.
weltenwort added a commit that referenced this pull request Jun 9, 2017
Since #11604 the background of the filter icons in the document table remained visible and covered part of the cell content even when the cell was not hovered. That was caused by moving from display: none on the filter div to opacity: 0 on the individual icons.

This PR moves the background styles from the filter div to the individual icons to prevent it from covering cell content when not hovered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:enhancement Team:Platform-Design Team Label for Kibana Design Team. Support the Analyze group of plugins. v5.5.0 v6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants